home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-11
/
fprotems.zip
/
PROWINDO.DOC
< prev
next >
Wrap
Text File
|
1993-01-04
|
5KB
|
92 lines
PROWINDO.DOC
Author: Ellen Sander
A UI2 Template
Generates: Code for FoxPro user-defined windows.
Requires: Named boxes on the screen at generation time,
with the word "Window" appearing somewhere in the box's
description slot.
Function library used: Prowindo.TLB
Prowindo.TEM writes the code for windows you design in the
UI2 Editor. To designate a UI2 box as a window, the word
"Window" must appear somewhere in the box's description
slot. The box must also have a name entered in it's Name slot.
Do not tag the box as a popup.
To create a title for the window, type it into the top
border of the window. No-border windows may not have a title.
Titles must be alphanumeric characters, square brackets [] or
immediately adjascent punctuation marks. The function,
write_window_title() will look for the title
string in the top window border and generate the appropriate
code in the DEFINE WINDOW statement. Anything else you may
type or paint on to the window border will be ignored.
Similarly, the template will ignore any graphics, text
notations or non-window boxes anywhere on the UI2 editor
screen outside of the windows, allowing you to visually
document your window sets.
There are FoxPro windowing options supported by this
template that are not available as WYSIWYG objects from the
UI editor. They are:
PANEL, SHADOW/NOSHADOW, GROW/NOGROW, FLOAT/NOFLOAT,
CLOSE/NOCLOSE, ZOOM/NOZOOM CLOSE/NOCLOSE
These options are available to the template from the box's
slots as follows:
1. PANEL
If you wish a PANEL border, type PANEL in the box's Slot 1.
2. SHADOW/NOSHADOW, GROW/NOGROW, FLOAT/NOFLOAT,
CLOSE/NOCLOSE, ZOOM/NOZOOM, CLOSE/NOCLOSE
These options are supported by typing your choices in the
box's Slot 2. Use the legal FoxPro syntax.
The template will look for the new @...SAY...GET options in
the VALID slot for that field or variable. After typing
your VALID expression (sans the word VALID, which the
template supplies-but see a note in the .tlb about this)
enter any complete, legally delimited ERROR, MESSAGE or WHEN
clause in the Valid Slot. If the slot expression gets long,
you may type semi-colons where you want the line to break in
the code.
It is suggested, but not mandatory, that the windows be the
only objects on the screen at generation time. (The
template will will initialize any visible variables external
to the windows but will identify them as such in comments in
the generated code.) You may hide other objects from the UI2
Edit menu to generate the windows.
COLORS:
Prowindo.TEM will write color code for the box border and
interior (color pairs 1 and 3) according to what is on the
UI2 screen you design. If you define an enhanced color (for
input variables, pair 2) from the UI2 Vars menu, generated
code placing fields or variables inside windows will use
that color pair. Otherwise, fields and variables will take
on the second color pair defined in the FoxPro environmental
color scheme. The color of the title of the active
(topmost) window at run-time is determined by the 4th color
pair in your FoxPro environmental setting.
This version of Prowindo.TEM does no color checking inside
the window. Any text in the window will appear in the
foreground color designated for the box when you created it.
Any painted colors will be ignored.
More complete instructions for using this template are
in the January, 1989 issue of DBMS Magazine.
However the code listings therein contain errors
which were editorially introduced. At the time of
this writing the listings posted on their BBS
also contained these errors.